package com.blt.govdata.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.blt.govdata.mapper.TLandMapper;
import com.blt.govdata.model.TLand;
import com.blt.govdata.model.vo.TLandVo;
import com.blt.govdata.service.ITLandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务实现类
 * </p>
 * @author AustinGJ123
 * @since 2018-03-26
 */
@Service
public class TLandServiceImpl extends ServiceImpl<TLandMapper, TLand> implements ITLandService {

    @Autowired
    private TLandMapper mapper;

    public Page<TLandVo> selectVoPage(Map<String, Object> paramMap) throws Exception {
        //todo
        return null;
    }

    @Override
    public List<Map<String, Object>> showLand(Map<String, Object> params) {
        return this.mapper.showLand(params);
    }

    @Override
    public boolean addLand(TLand entity) {
        return this.mapper.addLand(entity)>0;
    }

    @Override
    public boolean modifyLand(TLand entity) {
        return this.mapper.modifyLand(entity)>0;
    }
}
